package org.jash.demo2205.entity

import org.jash.demo2205.utils.bus

data class Category(
    val category_icon: String,
    val category_name: String,
    val `data`: List<Category>?,
    val id: Int,
    val parent_id: Int
) {
    fun showSubcategory() {
        bus.postValue("展示子分类" to data)
    }
    fun showGoods() {
        bus.postValue("展示商品" to id)
    }
}